export const analysisIdCard = (val) => {
  let ary = /(((\d{2})\d{2})\d{2})(\d{4})(\d{2})(\d{2})(\d{2})(\d)/.exec(val)
  console.log(ary);
  let domicilePlace = [];
  domicilePlace.push(ary[3] + '0000', ary[2] + '00', ary[1])
  let birthday = ary[4] + '-' + ary[5] + '-' + ary[6] + ' 00:00:00';
  console.log(ary);
  
  let sex = ary[8] % 2 ? 1 : 2;
  return {
    domicilePlace,
    birthday,
    sex
  }
}